package com.jxmcloud.business.cut.model.database;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xlcloud.platform.util.DateUtil;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 用户领取记录表
 */
@Data
@TableName("user_award_info")
public class DBUserAwardInfo {
    //主键ID
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //用户玄乐id
    @TableField("`uid`")
    private Integer uid;
    //活动id
    @TableField("`activity_id`")
    private Integer activityId;
    //奖励id
    @TableField("`award_id`")
    private Integer awardId;
    //奖励数量
    @TableField("`award_count`")
    private Integer awardCount;
    //标题
    @TableField("`title`")
    private String title;
    //流程ID
    @TableField("`progress_id`")
    private Integer progressId;
    //订单ID
    @TableField("`order_id`")
    private Integer orderId;
    //订单规格ID
    @TableField("`spec_id`")
    private Integer specId;

    //创建时间
    @TableField("`create_time`")
    @DateTimeFormat(pattern = DateUtil.FMT_YYYYMMDD_HHmmss_ZG)
    @JsonFormat(pattern = DateUtil.FMT_YYYYMMDD_HHmmss_ZG, timezone = DateUtil.TZ_GMT8)
    @JSONField(format = DateUtil.FMT_YYYYMMDD_HHmmss_ZG)
    private Date createTime;

}
